package co.fitstart.admin.entity.report;

import java.util.Map;

/**
 * 教练销课统计报表
 * @author haiyan_xiao
 *
 */
public class CoachFinishedScheduleReport {
    /** 门店 */
    private String site;
    
    /** 教练id */
    private String coach;
    
    /** 课程-销课数 */
    private Map<String, Long> courseMap;
    
    public CoachFinishedScheduleReport(String site, String coach, Map<String, Long> courseMap) {
        this.site = site;
        this.coach = coach;
        this.courseMap = courseMap;
    }
    
    /**
     * 
     * @return
     */
    public long getTotalAmount() {
        if(courseMap == null || courseMap.isEmpty()) {
            return 0;
        } else {
            long result = 0;
            for(String key : courseMap.keySet()) {
                result += courseMap.get(key);
            }
            return result;
        }
    }

    /**
     * @return the site
     */
    public String getSite() {
        return site;
    }

    /**
     * @return the coach
     */
    public String getCoach() {
        return coach;
    }

    /**
     * @return the courseMap
     */
    public Map<String, Long> getCourseMap() {
        return courseMap;
    }

    /**
     * @param site the site to set
     */
    public void setSite(String site) {
        this.site = site;
    }

    /**
     * @param coach the coach to set
     */
    public void setCoach(String coach) {
        this.coach = coach;
    }

    /**
     * @param courseMap the courseMap to set
     */
    public void setCourseMap(Map<String, Long> courseMap) {
        this.courseMap = courseMap;
    }
}
